<aside class="col-md-4 sidebar">
	<#if Session['user']??>
	<#assign user=Session['user']>
	<div class="widget"> 
	<h4 class="title">个人信息	
	<div class="btn-group" style="margin-left: 30%;">
				 <button class="btn btn-default" >菜单栏</button> 
				 <button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
				 <span class="caret"></span></button>
				<ul class="dropdown-menu">
					<li>
						<a href="${request.contextPath}/user/modify">个人信息</a>
					</li>
					<li>
						 <a href="${request.contextPath}/section/my-section">我的帖子</a>
					</li>
					<li>
						 <a href="${request.contextPath}/section/add">发帖</a>
					</li>
					<li>
						<a href="${request.contextPath}/jobMessage/jobManage">任务管理</a>
					</li>
					<li>
						<a href="${request.contextPath}/dajie/dajieManage">大街网</a>
					</li>
					<li class="divider">
					</li>
					<li>
						<a href="#">信息(0)条</a>
					</li>
					<li class="divider">
					</li>
					<li>
						<a href="${request.contextPath}/user/loginout">退出</a>
					</li>
				</ul>
	</div>
	</h4>
			
			
    <div class="row" >
      <div class="col-xs-4 col-sm-5" style="text-align: center;">
      	<img alt="140x140" width="100px" height="100px" src="${request.contextPath}/static/img/a.jpg" class="img-rounded" />
      </div>
      <div class="col-xs-3 col-sm-7" >
        <p>账 号:${user.userName}</p>
        <p>等 级:${user.userLevel}</p>
        <p>昵 称:${user.nickName}</p>
      </div>
     </div>
	</div>
	<#else>
	<div class="widget">
	<h4 class="title">登录</h4>
		<form id="navbar_login" role="form">
			<div class="form-group">
				<input placeholder="请输入账号" name="userName" id="userName_login"
					class="form-control" type="text">
			</div>
			<div class="form-group">
				<input placeholder="请输入密码" name="userPassword" id="password_login"
					class="form-control" type="password">
			</div>
			<button type="button" id="login_btn" class="btn btn-success"
				onclick="login();">登 录</button>
			<a class="btn btn-danger" href="toRegister">注 册</a>
		</form>
		<script type="text/javascript">
				//layer.msg('不开心。。', {icon: 5,time:2000});
				function login(){
					var dataJson = $("#navbar_login").serialize();
					$.ajax({
					    type: "post",
					    dataType: 'json',
					    url: '${request.contextPath}/user/login',
					    data: dataJson,
					    success:function(data){
					    	if(data.status==200){
					    		layer.msg(data.msg, {icon: 1,time:2000});
					    		location.replace(location.href);
						    }else{
						    	layer.tips(data.msg, '#password_login',{tips: 3});
							}
					    }
					});
				}
			</script>
	</div>
	</#if>
	<div class="widget">
		<h4 class="title">搜索</h4>
		<div class="input-group" style="margin-top: 0px positon:relative">
			<input id="top_key_word" type="text" class="form-control"
				value="${top_key_word!}" placeholder="请输入需要查找的内容" /> <span
				class="input-group-btn"> <a onclick="searchKeyWord();"
				class="btn btn-default btn-block" style="margin-left: 3px">查找</a>
			</span>
		</div>
	</div>
	<div class="widget">
		<style>
.news a:link {color: #e67e22}               
.news a:visited {color: #e67e22}            
.news a:hover {color: #e67e22}            
.news a:active {color: #e67e22}   
		</style>
		<h4 class="title">时讯要闻</h4>
		<div class="content news">
			<ul>
				<#if Session['newsMessageList']??> <#assign
				newsMessageList=Session['newsMessageList']> <#if newsMessageList??>
				<#list newsMessageList as newsMessage> <#if
				newsMessage.message?length gt 16>
				<li><a href="${newsMessage.url}" target="_blank" style="">${newsMessage.message?substring(0,16)}...</a></li>
				</#if> </#list> </#if> </#if>
			</ul>
		</div>
	</div>
	<div class="widget">
		<h4 class="title">下载app链接</h4>
		<div class="content download">
			<a href="${request.contextPath}/static/download/forum.apk"
				class="btn btn-default btn-block">社区app（0.1.4）</a>
		</div>
	</div>
	<div class="widget">
		<h4 class="title">标签云</h4>
		<div class="content tag-cloud">
			<#if Session['Search_KeywordsList']??> 
				<#list Session['Search_KeywordsList'] as x>
				<a href="${x.remark!}">${x.keyWord!}</a>
				</#list> 
			<#else>
				<a href="http://jquery.com/">jQuery</a> <a
				href="http://tomcat.apache.org/">tomcat</a> <a
				href="https://www.oschina.net/">开源</a> <a
				href="http://www.baidu.com/tag/zhu-shou-han-shu/">助手函数</a> <a
				href="http://www.baidu.com/tag/tag-cloud/">标签云</a> <a
				href="http://www.baidu.com/tag/navigation/">导航</a> <a
				href="http://www.baidu.com/tag/customize-page/">自定义页面</a> <a
				href="http://www.baidu.com/tag/static-page/">静态页面</a> <a
				href="http://www.baidu.com/tag/roon-io/">Roon.io</a> <a
				href="http://www.baidu.com/tag/configuration/">配置文件</a> <a
				href="http://www.baidu.com/tag/upyun/">又拍云存储</a> <a
				href="http://www.baidu.com/tag/upload/">上传</a> <a
				href="http://www.baidu.com/tag/handlebars/">Handlebars</a> <a
				href="http://www.baidu.com/tag/email/">邮件</a> <a
				href="http://www.baidu.com/tag/shortcut/">快捷键</a>
			</#if>
			<ahref="http://www.baidu.com/tag-cloud/">...</a>
		</div>
	</div>
	<div class="widget">
		<h4 class="title">社区</h4>
		<div class="content community">
			<p>QQ：422454750</p>
			<p>QQ：790943164</p>
			<p>
				<a href="https://git.oschina.net/organizations/hwenqq97/members"
					title="团队信息" target="_blank"
					onclick="_hmt.push(['_trackEvent', 'big-button', 'click', '团队信息'])"><i
					class="fa fa-weibo"></i> 团队信息</a>
			</p>
		</div>
	</div>
	<script>
function searchKeyWord(){
	var keword = document.getElementById("top_key_word").value;
	if(keword!=''){
		location.replace("${request.contextPath}/index?pageSize=5&pageNum=1&keyword="+keword);
	}else{
		location.replace("${request.contextPath}/index?pageSize=5&pageNum=1");
	}
}
</script>
</aside>